class Student:
    def __init__(self, name):
        self.name = name

    @property
    def age(self):
        return self._age

    @age.setter
    def age(self, age):
        self._age = age


stu = Student('漳卅')
stu.age = 40
print(stu.age)
